package com.nero.controller;

import com.nero.service.IContentService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * Created by Nero on 18/8/9.
 */
@Controller
@RequestMapping("/index")
public class IndexController {
    @Resource
    IContentService contentServiceImpl;

    @RequestMapping("")
    public String index(Model model) {
        model.addAttribute("data", contentServiceImpl.getSlides());
        return "index";
    }
}
